<?php

/**
 * main actions.
 *
 * @package    sf_sandbox
 * @subpackage main
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 9301 2008-05-27 01:08:46Z dwhittle $
 */
class  mainActions extends sfActions
{
  public function executeChangeLanguage($request)
  {
    $this->form = new sfFormLanguage($this->getUser(), array('languages' => array('en', 'fr', 'es')));

    if ($request->isMethod('post'))
    {
      $this->form->process($request);

      return $this->redirect('@homepage');
    }
  }
}
